* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p{
    text-decoration: none;
}

input {
    outline: none;
    width: 60%;
    height: 40px;
    margin-bottom: 20px;
    text-indent: 4px;
    border: 1px solid #b0cfe9;
    border-radius: 5px;
}

input:focus {
    color: #8ddaec;
}

input:focus::placeholder {
    opacity: 0;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    background: linear-gradient(to right, rgb(255, 172, 95), rgb(251, 246, 223));
    height: 100vh; /* 确保父容器高度为视口高度 */
    margin: 0; /* 移除默认外边距 */
}

.content {
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中 */
    width: 1050px;
    height: 600px;
    position: relative;
    /*background-color: #fff;*/
    margin: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
}

.pre-box {
    z-index: 10;
    position: absolute;
    width: calc(1050px/2);
    left: 0;
    top: 0;
    height: 100%;
    border: 4px;
    border-radius: 4px;
    background-color: #FFC181;
    box-shadow: 4px 3px 3px rgba(0,0,0,0.2);
    transition: 0.5s ease-in-out;
}

.pre-box h1 {
    color: #000000;
    margin-top: 150px;
    text-align: center;
    letter-spacing: 5px;
    text-shadow: 4px 3px 2px rgba(0,0,0,0.2);
}

.pre-box p {
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    text-shadow: 4px 3px 3px rgba(0,0,0,0.1);
}

.img-box{
    width: 200px;
    height: 200px;
    margin: 20px  auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
}

.img-box img{
     width: 100%;
    transition: 0.5s ease-in-out;
}

.sign-in-container,
.sign-up-container {
    flex: 1; /* 每个容器占据父容器的一半宽度 */
    height: 100%; /* 设置容器的高度为 100% */
}


.title-box {
    height: 300px;
    line-height: 400px;
}

.title-box h1 {
    text-align: center;
    letter-spacing: 5px;
    text-shadow: 4px 3px 2px rgba(0,0,0,0.2);
}

.input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -50px;  /* 添加负边距使输入框上移 */
}

.input-container input {
    position: relative; /* 设置 input 为相对定位 */
    width: 60%;
    height: 40px;
    margin-bottom: 20px;
    text-indent: 4px;
    border: 1px solid #b0cfe9;
    border-radius: 5px;
}

.input-container span {
    position: relative; /* 相对于最近的 input 定位 */
    margin-top: -20px;
    margin-bottom: 4px;
    left: 0; /* 根据需要调整水平位置 */
    color: red; /* 错误提示颜色 */
    font-size: 12px; /* 字体大小 */
    display: block; /* 确保 span 是块级元素 */
    text-align: left; /* 设置文字左对齐 */
    width: 60%; /* 与 input 宽度一致 */
}

.btn-box {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

button {
    text-align: center;
    width: 60%;
    height: 40px;
    margin: 0 auto;
    line-height: 30px;
    border: none;
    border-radius: 5px;
    background-color: #60b3f0;
    color: white;
    letter-spacing: 10px;
}

.btn-box p:hover {
    text-decoration: none; /* 确保悬停时也没有下划线 */
}

.btn-box p {
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    text-decoration: none; /* 确保没有下划线 */
    cursor: pointer; /* 当鼠标悬停时显示手形光标 */
    margin-top: 10px;
    margin: 6px auto;
}